* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.connection-status {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

#status-indicator {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #e74c3c;
    color: white;
}

#status-indicator.connected {
    background-color: #2ecc71;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.remote-screen {
    width: 100%;
    margin-bottom: 20px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#remote-video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000;
    min-height: 480px;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

#connection-stats {
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .connection-status {
        flex-direction: column;
        gap: 10px;
    }
}